import 'package:wch/generated/json/base/json_field.dart';
import 'package:wch/generated/json/patient_device_list_entity.g.dart';
import 'dart:convert';

import 'acquisition_entity.dart';
export 'package:wch/generated/json/patient_device_list_entity.g.dart';

@JsonSerializable()
class PatientDeviceListEntity {
	String? code;
	String? msg;
	PatientDeviceListData? data;

	PatientDeviceListEntity();

	factory PatientDeviceListEntity.fromJson(Map<String, dynamic> json) => $PatientDeviceListEntityFromJson(json);

	Map<String, dynamic> toJson() => $PatientDeviceListEntityToJson(this);

	@override
	String toString() {
		return jsonEncode(this);
	}
}

@JsonSerializable()
class PatientDeviceListData {
	int? pageIndex;
	int? pageSize;
	int? totalPage;
	int? totalCount;
	List<PatientDeviceListDataData>? data;
	int? total;
	int? current;
	int? records;
	int? size;
	int? pages;

	PatientDeviceListData();

	factory PatientDeviceListData.fromJson(Map<String, dynamic> json) => $PatientDeviceListDataFromJson(json);

	Map<String, dynamic> toJson() => $PatientDeviceListDataToJson(this);

	@override
	String toString() {
		return jsonEncode(this);
	}
}

@JsonSerializable()
class PatientDeviceListDataData {
	String? id;
	String? sickPersonId;
	String? hospitalId;
	String? deviceId;
	String? deviceName;
	String? bmDeviceBluetoothNumber;
	String? deviceBluetoothNumber;
	String? deviceNumber;
	String? labels;
	List<AcquisitionAcquisitionLabelList>? labelNameList;
	String? distributionName;
	String? distributionTime;
	String? recycleTime;
	String? recycleUserId;
	String? recycleUserName;
	String? recycleRemark;
	int? status;
	String? createTime;
	String? updateTime;
	List<String>? labelList;

	PatientDeviceListDataData();

	factory PatientDeviceListDataData.fromJson(Map<String, dynamic> json) => $PatientDeviceListDataDataFromJson(json);

	Map<String, dynamic> toJson() => $PatientDeviceListDataDataToJson(this);

	@override
	String toString() {
		return jsonEncode(this);
	}
}

@JsonSerializable()
class PatientDeviceListDataDataLabelNameList {
	String? id;
	String? name;
	int? type;
	String? colour;

	PatientDeviceListDataDataLabelNameList();

	factory PatientDeviceListDataDataLabelNameList.fromJson(Map<String, dynamic> json) => $PatientDeviceListDataDataLabelNameListFromJson(json);

	Map<String, dynamic> toJson() => $PatientDeviceListDataDataLabelNameListToJson(this);

	@override
	String toString() {
		return jsonEncode(this);
	}
}